package com.shelpe.services.sustainer.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import lombok.Data;

@FeignClient(name="${feign.simbasync.name}", url="${feign.simbasync.url}")
public interface SimbaSyncClient {

	@RequestMapping(path="/simbasync/tenants/{user}/adgroups/{adgroup_id}/@keywordscore", method = RequestMethod.GET,  consumes="application/json;charset=UTF-8")
	SyncResultDto syncMobileQscore(@PathVariable("user")  long userID, @PathVariable("adgroup_id") long adgroupID);

	@Data
	public static class SyncResultDto{
		private String process;
		private long durTime;
		private long updateNum;
	}
}
